<?php
namespace App\Common\Cla\Com\Upload;

use App\Common as com;

class Var_ extends com\Cla\ClaBase {
	/** api地址->上传 */
	public static $webApiUrl_Upload = '/port/com/upload';
	/** 验证盐 */
	public static $config_TokenSalt = 'J&K8qBD7pVe5FRmF';
	
	/**
	 * 上传根目录(物理目录)
	 * @return string 返回上传根目录
	 */
	public static function getUploadRootDir(){
		return root_path() . "public" . DIRECTORY_SEPARATOR . "upload" . DIRECTORY_SEPARATOR;
	}
	
	/**
	 * 上传目录(物理相对目录，public)
	 * @return string 返回上传根目录
	 */
	public static function getUploadDir(){
		return 'upload' . DIRECTORY_SEPARATOR;
	}
	
	/**
	 * 上传目录(url，不包含域名)
	 * @return string 返回上传根目录
	 */
	public static function getUrlUploadDir(){
		return 'upload/';
	}
	
}
